package param.secondStage;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import param.pub.Org;
import param.pub.Publicrequest;

@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlRootElement(name = "orgsynrequest")
public class OrgSyncRequest implements Serializable {

	private static final long serialVersionUID = 1L;

	private Publicrequest publicrequest;
	private Date lastsynctime;
	private List<Org> orgs;

	@XmlElement(name = "publicrequest")
	public Publicrequest getPublicrequest() {
		return publicrequest;
	}

	public void setPublicrequest(Publicrequest publicrequest) {
		this.publicrequest = publicrequest;
	}

	public Date getLastsynctime() {
		return lastsynctime;
	}

	public void setLastsynctime(Date lastsynctime) {
		this.lastsynctime = lastsynctime;
	}

	@XmlElementWrapper(name = "orginfos")
	@XmlElement(name = "orginfo")
	public List<Org> getOrgs() {
		return orgs;
	}

	public void setOrgs(List<Org> orgs) {
		this.orgs = orgs;
	}
}
